package cn.mrlong.usbcamera.application;

import android.app.Application;

import com.squareup.otto.Bus;
import com.squareup.otto.ThreadEnforcer;

import cn.mrlong.usbcamera.utils.CrashHandler;


/**全局类
 *
 * Created by jianddongguo on 2017/7/20.
 */

public class MyApplication extends Application {
    private CrashHandler mCrashHandler;
    public static final Bus BUS = new Bus(ThreadEnforcer.ANY);
    @Override
    public void onCreate() {
        super.onCreate();
        mCrashHandler = CrashHandler.getInstance();
        mCrashHandler.init(getApplicationContext(), getClass());
        BUS.register(this);
    }
}
